{config_load file="$language/lang.conf" section="account_history_info"}
{config_load file="$language/lang.conf" section="print_order"}
{config_load file="$language/lang.conf" section="product_info"}
<h3 class="ntitle"><img src="{$tpl_path}images/ntitlebg.png" alt="" width="43" height="39">{#heading_history_info#}</h3>
<hr />
<br />
<h3 class="btitle">{#text_oid#}{$ORDER_NUMBER}
      ({$ORDER_STATUS})</h3>
<div class="morefield">
<span class="arg"><a href="{$LINK_ALL}">{#text_date#} {$ORDER_DATE}</a></span>
</div>
<br /><br />




<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr> 
    <td>
    <div class="basic">
    <div class="baseinfo">
		<div style="float: left;">
			<p><strong>{#text_shipping_address#}</strong></p>
            <p>{$DELIVERY_LABEL}</p>
		</div>
	<div class="clr"></div>
    </div></div>
</td>
{if $BILLING_LABEL}
<td>
<div class="basic">
    <div class="baseinfo">
		<div style="float: left;">
			<p><strong>{#text_payment_address#}</strong></p>
            <p>{$BILLING_LABEL}</p>
		</div>
	<div class="clr"></div>
    </div></div>
</td>
{/if}
  </tr>
</table>
<br />
<div class="info">
	<div>
    <strong>{#text_shipping_method#}</strong><br />{$SHIPPING_METHOD}<br />
    <img src="{$tpl_path}images/spacer.png" class="dotted">
    {if $PAYMENT_METHOD}
    <strong>{#text_payment_method#}</strong><br />{$PAYMENT_METHOD}<br />
    <img src="{$tpl_path}images/spacer.png" class="dotted">
    {/if}
    {if $ORDER_COMMENTS!=''}
    {#text_comments#}<br />
    <img src="{$tpl_path}images/spacer.png" class="dotted">
    {/if}
    {if $PAYMENT_INFORMATION!=''}
    <strong>{#text_payment_info#}</strong><br />
    {$PAYMENT_INFORMATION}
    {/if}
    </div>
</div>

<br />
<h3 class="btitle">{#title_history#}</h3>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr> 
    <td>{$HISTORY_BLOCK}</td>
  </tr>
</table>
<br />
<h3 class="btitle">{#text_products#}</h3><br />
<table class="cblock" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_left_top.gif" width="3" height="3" alt="" /></td>
                  <td class="cblock-top"><img src="{$tpl_path}spacer.png" width="1" height="3" alt="" /></td>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_right_top.gif" width="3" height="3" alt="" /></td>
                </tr>
                <tr valign="top">

		<td class="cblock-left"></td>

		<td>
<table width="100%" border="0" cellspacing="1" cellpadding="7" class="bgcolor4">
<tr class="bgcolor1">
<th colspan="2">{#head_units#}</th>
<th>{#head_products#}</th>
<th>{#head_artnr#}</th>
<th>{#head_single_price#}</th>
<th>{#head_price#}</th>
</tr>
{foreach name=aussen item=order_values from=$order_data}
<tr class="bgcolor1">
<td align="center">{$order_values.PRODUCTS_QTY}</td>
<td align="center">x</td>
<td><strong>{$order_values.PRODUCTS_NAME}</strong><em>{$order_values.PRODUCTS_ATTRIBUTES}</em>{if $order_values.PRODUCTS_SHIPPING_TIME neq ''}<br />
            {#text_shippingtime#} {$order_values.PRODUCTS_SHIPPING_TIME}<br />{/if}</td>
<td>{$order_values.PRODUCTS_MODEL}<em>{$order_values.PRODUCTS_ATTRIBUTES_MODEL}</em></td>
<td>{$order_values.PRODUCTS_SINGLE_PRICE}</td>
<td align="right">{$order_values.PRODUCTS_PRICE}</td>
</tr>
{/foreach}
<tr class="bgcolor1"><td colspan="6"></td></tr>


{foreach name=aussen item=order_total_values from=$order_total}
  <tr class="bgcolor1">
    <td colspan="5" align="right">{$order_total_values.TITLE}</td>
    <td align="right">{$order_total_values.TEXT}</td>
  </tr>
{/foreach}





</table>
		</td>

		<td class="cblock-right"></td>
                </tr>
                <tr>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_left_bottom.gif" width="3" height="7" alt="" /></td>
                  <td class="cblock-bottom"><img src="{$tpl_path}spacer.png" width="1" height="7" alt="" /></td>
                  <td width="3"><img src="{$tpl_path}images/cblock/cblock_right_bottom.gif" width="3" height="7" alt="" /></td>
                </tr>
</table>
{if $downloads_content neq ''}
  {$downloads_content}
{/if}



<br />
<div align="right"><a class="fbutton" href="account.php">Повернутись</a></div>
<br />
<h3 class="btitle">{#title_print#}</h3>
<div class="morefield">
<span class="arg">{#text_print#}</span><br /><br />

{$BUTTON_PRINT} &nbsp;&nbsp;  {$BUTTON_SCHET_PRINT}  &nbsp;&nbsp;  {$BUTTON_KVITANCIA_PRINT}
</div>
<br />